package com.gdqy.FCS.dao;

import java.util.List;

import com.gdqy.FCS.common.persistence.CrudDao;
import com.gdqy.FCS.common.persistence.annotation.MybatisDao;
import com.gdqy.FCS.entity.Collection;

@MybatisDao
public interface CollectionDao extends CrudDao<Collection>{
	public List<Collection> selectByUser_id(int user_id);
	
	public Collection selectByUser_idAndObject_idAndObject_type(int user_id,int object_id,String object_type);
	
	public List<Collection> selectByUser_idAndObject_type(int user_id,String object_type);
	
	public int selectCountByUser_id(int user_id);
	
	public Collection selectById(int collection_id);
	
	public int deleteById(int collection_id);
	
	public List<Collection> selectWithDesign(int user_id);
	
	public List<Collection> selectWithFabric(int user_id);
	
	public List<Collection> selectWithClothing(int user_id);
}
